$(function(){
	var token;
	token = localStorage.getItem("token");

	if (token == null || token == undefined || token == '') { 
		$.ajax({
			type: "POST",
			url: "http://yx.fxtourong.com/V1/Member/getToken",
			async: false,
			data: {},
			dataType: "json",
			success: function(data) {
				console.log(data);
				var code = data.code;
				console.log(code);
				if(code == "1") {
					localStorage.setItem("token", data.data);
				} 
			}
		});
	} 
	
});